package com.example.musicbox.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author 帅哥是我
 * @since 2022-08-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="MCatalogue对象", description="")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class MCatalogue implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "目录id")
    @TableId(value = "mId", type = IdType.AUTO)
    private Integer mid;

    @ApiModelProperty(value = "用户id")
    @TableField("uId")
    private Integer uid;

    @ApiModelProperty(value = "目录排序")
    @TableField("cSort")
    private Integer cSort;

    @ApiModelProperty(value = "目录名称")
    @TableField("cName")
    private String cName;

    /**
     * 音乐列表不存在与目录中，方便查询添加
     */
    @TableField(exist = false)
    private List<MMusic> musicList;

}
